<?php TPL::output('admin/global/header.tpl.htm'); ?>

<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<!-- main -->
<div style="margin:0 0 0 200px;">
<div class="content-box-header" style="margin-bottom:10px;">
	<h3>欢迎访问 <?php echo get_setting('site_name'); ?> 后台管理面板</h3>
</div>
<?php if ($this->writable_check) { ?>
<?php foreach ($this->writable_check as $key => $val) { ?>
<?php if(!$val) { ?>
<div class="notification png_bg error" id="notification_box" style="margin:5px auto; margin-bottom:10px; width:96%;"> <a href="javascript:;" class="close"></a>
	<div name="notification_content" style="height:20px;"><span style="float:left"><?php echo $key; ?>文件夹无法写入，请检查并将文件夹权限设置为 0777</span></div>
</div>
<?php } ?>
<?php } ?>
<?php } ?>
<div style="width:950px;">
<div class="content-box-content" style=" float:left;width:550px;">
	<table width="100%">
		<thead>
			<tr>
				<th colspan="4">系统信息</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>PHP 版本</td>
				<td><?php echo PHP_VERSION; ?></td>
				<td>MySQL 版本</td>
				<td><?php echo MYSQL_VERSION; ?></td>
			</tr>
			<tr>
				<td>会员总数</td>
				<td><?php echo $this->users_count; ?></td>
				<td>Email 激活会员数</td>
				<td><?php echo $this->users_valid_email_count; ?></td>
			</tr>
			<tr>
				<td>站点总数</td>
				<td><?php echo $this->question_count; ?></td>
				<td>评价总数</td>
				<td><?php echo $this->answer_count; ?></td>
			</tr>
			<tr>
				<td>等待评价的站点</td>
				<td><?php echo $this->question_no_answer_count; ?></td>
				<td>最佳答案数量</td>
				<td><?php echo $this->best_answer_count; ?></td>
			</tr>
			<tr>
				<td>标签总数</td>
				<td><?php echo $this->topic_count; ?></td>
				<td>附件总数</td>
				<td><?php echo $this->attach_count; ?></td>
			</tr>
			<tr>
				<td>待审核站点</td>
				<td><?php echo $this->approval_question_count; ?></td>
				<td>待审核评价</td>
				<td><?php echo $this->approval_answer_count; ?></td>
			</tr>
		<tbody>
	</table>
</div>

<div class="content-box-content" style=" float:left;width:300px;display:none;" id="offical_notify">
	<div style="border:1px solid rgb(204, 204, 204); margin-top:0px;">
		<div style="width: 100%; height:34px;cursor: s-resize;" class="content-tgbox-header">
			<h6>最新程序更新与补丁</h6>
		</div>
		<ul class="tab-content default-tab"></ul>
	</div>
</div>

</div>

<!-- footer -->
<?php TPL::output('admin/global/footer.tpl.htm'); ?>
<!-- footer -->

</div>
<!-- main -->

</div>

<script type="text/javascript">
$.getJSON("http://wenda.anwsion.com/api/admin_notify.php?jsoncallback=?", function(data){
	if(data.notify)
	{
		$('#offical_notify').show().find('ul').html(data.notify)
	}
});
</script>

</body>
</html>